package com.google.code.whitetask.old;

import java.util.concurrent.ConcurrentHashMap;

@SuppressWarnings("serial")
public class TaskContext extends ConcurrentHashMap<String, Object> {
  private final String LASTERROR_KEY = "_last_error";
  
  public void setLastError(Exception e) {
    put(LASTERROR_KEY, e);
  }
  
  public Exception getLastError() {
    return (Exception)get(LASTERROR_KEY);
  }
}
